package org.lendoo.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;
import java.sql.Timestamp;
import java.sql.Blob;
import java.sql.Clob;

/**
 * 分类表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Category", description = "分类表")
@TableName("category")
public class Category {

    @ApiModelProperty(value = "主键", dataType = "Integer")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "父级分类id", dataType = "Integer")
    @TableField(value = "parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "标题", dataType = "String")
    @TableField(value = "title")
    private String title;
}
